package cn.stu.framework.mapper;

import cn.stu.framework.vo.rolemenu.MenusVo;
import cn.stu.framework.vo.rolemenu.RoleMenuVo;
import cn.stu.framework.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-08-04
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {


    List<RoleMenuVo> roleMenuList(@Param("roleName") String roleName);

    List<MenusVo> getMenusVo(@Param("roleId") Long roleId);

    List<Long> getMenus(@Param("roleId") Long roleId);
}
